package com.ttc.ssm.service.admin;

import com.ttc.ssm.common.CustomerPage;
import com.ttc.ssm.common.Page;
import com.ttc.ssm.po.*;

import java.util.List;
import java.util.Map;

/**
 * Created by 58296 on 2016/7/25.
 */
public interface CustomerService {
    List<Customer> getCustomerForPage(CustomerPage customerPage) throws Exception;
    int totalRows(Map where) throws Exception;
    void updateCustomerById(Customer customer) throws Exception;
    Customer getCustomerById(int customer_id) throws Exception;
    void deleteCustomer(Map<String,Object> map) throws Exception;
    void updateCustomerStatus(int company_id,int status) throws Exception;

    List<Resume> selectResumeForPage(CustomerPage page) throws Exception;
    int totalResumeRows(Map where) throws Exception;
    void deleteResumes(Map<String,Object> map) throws Exception;
    Resume selectResumeById(Integer resume_id) throws Exception;
    void updateResumes(Resume resume) throws Exception;

    List<Skill> selectSkillByResumeId(Integer resume_id) throws Exception;
    void deleteSkillById(Map<String,Object> map) throws Exception;
    void insertSkill(Skill skill) throws Exception;
    void updateSkill(Skill skill) throws Exception;

    List<Education> selectEduByResumeId(Integer resume_id) throws Exception;
    void deleteEduById(Map<String,Object> map) throws Exception;
    void insertEdu(Education education) throws Exception;
    void updateEdu(Education education) throws Exception;

    List<CompetitionExp> selectComByResumeId(Integer resume_id) throws Exception;
    void deleteComById(Map<String,Object> map) throws Exception;
    void insertCom(CompetitionExp competitionExp) throws Exception;
    void updateCom(CompetitionExp competitionExp) throws Exception;

    List<WorkExp> selectWorkByResumeId(Integer resume_id) throws Exception;
    void deleteWorkById(Map<String,Object> map) throws Exception;
    void insertWork(WorkExp workExp) throws Exception;
    void updateWork(WorkExp workExp) throws Exception;
}
